import React, { FC } from 'react';
import moment from 'moment';
import "../utils/font_1hsfvuvglv9/iconfont.css"
import "./ArticleBottom.less"
import{useHistory} from "umi"
import { labelItem } from '@/utils/Article';
interface Iitem {
  item: labelItem;
}
const ArticleBottom: FC<Iitem> = (props) => {  
  let item = props.item;
  const history=useHistory()
  function goDetail(label:string){  
    debugger
    
    history.push("/page/tag",label)
  }
  return (
    <div className="bottom" onClick={()=>{goDetail(item.label)}}>
         {item.label}[{item.articleCount}]
    </div>
  );
};

export default ArticleBottom;


